<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>圣杯布局</title>
    <style>
        .container {
            display: flex;
            flex-flow: column nowrap;
            width: 800px;
            height: 500px;
        }
        #header, #footer {
            height: 50px;
            background-color: #666666;
        }
        #content {
            flex: 1;
            display: flex;
        }
        #left{
            width: 20%;
            background-color: skyblue;
        }
        #center {
            flex: 1;
            background-color: lightgray;
        }
        #right {
            width: 20%;
            background-color: orange;
        }
    </style>
</head>
<body>
    <div class="container">
        <div id="header">
            #header
        </div>
        <div id="content">
            <div id="left">#left</div>
            <div id="center">#center</div>
            <div id="right">#right</div>
        </div>
        <div id="footer">
            #footer
        </div>
    </div>
</body>
</html>